import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const news: AppRouteModule = {
  path: '/news',
  name: '新闻',
  component: LAYOUT,
  redirect: '/news/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'material-symbols:news',
    title: t('新闻管理'),
    orderNo: 3,
  },
  children: [
    {
      path: 'index',
      name: 'news',
      component: () => import('@/views/news/index.vue'),
      meta: {
        title: t('新闻管理'),
        hideMenu: true,
      },
    },
  ],
};
export default news;
